<?php

namespace app\admin\model;

use frame\lib\Db;

class Feedback
{
    public static function list($query)
    {
        if ($query) {
            $list = Db::name('feedback')->where(['uid' => 0, 'delete_time' => 0])->like('content' , "%$query%")->select();
        }else{
            $list = Db::name('feedback')->where(['uid' => 0, 'delete_time' => 0])->select();
        }
        return $list;
    }
}
